package com.accenture.adf.newcodington.module9.sample;

/**
 * 
 * Movie3D is about a movie theater in New Codington
 * 
 * Topic: Demo on usage of default constructor and local variables
 * 
 * Instructions:
 * 1. Use 'Movie3D_Demo1' as the starting point and add the following changes
 * 2. Change the class name to 'Movie3D_Demo2'
 * 3. Create a default or no argument constructor after main() method
 * 4. Print "Default constructor invoked" to console from default constructor
 * 5. Modify main() method to create an instance of 'Movie3D_Demo2' using default constructor
 * 
 */

public class Movie3D_Demo2 {
	
	//Static fields
	private static String theaterType;
	private static String theaterName;
	
	static{
		theaterType = "3D";
		theaterName = "Cinema One";
		System.out.println("Static block initialiazed.");
	}
	
	public static void main(String[] args){
		System.out.println("Theater Type : " + theaterType);
		System.out.println("Theater Name : " + theaterName);
		
		//movie3d - is a local variable
		Movie3D_Demo2 movie3D  = new Movie3D_Demo2(); 
	}
	
	//Generic Constructor
	public Movie3D_Demo2() {		
		System.out.println("Default constructor invoked.");
	}
}
